package com.hisense.hiioc.hismartplate.service;

import com.hisense.hiioc.hismartplate.base.BaseService;
import com.hisense.hiioc.hismartplate.entity.response.BaseRes;
import com.hisense.hiioc.hismartplate.entity.table.DeviceSnapEntity;
import com.hisense.hiioc.hismartplate.mapper.DeviceSnapMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: almo
 * @Date: 2018/12/9 下午3:57
 * @Version 1.0
 */
@Service
public class DeviceScreenSnapService extends BaseService<DeviceSnapEntity,DeviceSnapMapper> {
    public int insertOrUpdateDeviceSnapShot(DeviceSnapEntity entity) {
        return mapper.insertOrUpdateDeviceSnapShot(entity);
    }
    public List<DeviceSnapEntity> getDeviceSnap(String DeviceId){
        return mapper.getDeviceSnapInfo(DeviceId);
    }

    public List<Map> getDeviceList(Map map){
        return mapper.getDeviceList(map);
    }

}
